﻿@extends('layouts.shop_main')

@section('title', '订单详情')

@section('resources')
    @parent
    <style>
        .header{margin: 0 30px 20px 30px;padding: 10px 0;overflow: hidden;border-bottom: 1px solid #eee;}
        .header p{float: left;font-size: 18px;overflow: hidden;}
        .header p span{float: left;font-size: 18px;margin-right: 10px;}
        .order_content{margin: 0 30px;}
        .order_content .name_money p{font-size: 18px;margin: 20px 0;}
        .order_content .title{position: relative;height: 35px;margin-top: 20px;}
        .order_content .title span{font-size: 18px;border-left: 3px solid #999;padding: 0 20px;position: absolute;top: 0;left: 0;background-color: #fff;}
        .order_content .title p{border-bottom: 1px solid #eee;float: left;position: absolute;top: 13px;left: 0;width: 100%;}
        .order_content .order_details{font-size: 14px;}
        .order_content .order_details li{margin: 10px 0;}
    </style>
@endsection

@section('content')
	<div class="content">
        <div class="header">
            <p>
                <span style="color: #808080;">订单管理</span>
                <span style="color: #808080;">></span>
                <span>详情</span>
            </p>
        </div>
        <section class="order_content">
            <div class="name_money">
                <p>{{$nickname}}({{$mobile}})</p>
                <p>消费金额 {{$orderamount}}</p>
            </div>
            <div class="title">
                <p></p>
               <span>买单详情</span> 
            </div>
            <ul class="order_details">
                <li>
                    <span>支付时间：</span>
                    <span>{{date('Y-m-d H:i', strtotime($created_at))}}</span>
                </li>
                <li>
                    <span>订单号：</span>
                    <span>{{$ordernumber}}</span>
                </li>
                <li>
                    <span>消费门店：</span>
                    <span>{{$shopname}}</span>
                </li>
                <li>
                    <span>买单方式：</span>
                @if($path == 'user')
                    <span>用户发起</span>
                @elseif($path == 'shop')
                    <span>商家发起</span>
                @endif
                </li>
                <li>
                    <span>收银员：</span>
                    <span>{{$shopusername}}</span>
                </li>
            </ul>
            <div class="title">
                <p></p>
               <span>结款详情</span> 
            </div>
            <ul class="order_details">
                <li>
                    <span>财务结款：</span>
                    <span>￥{{$accountamount}}</span>
                </li>
                <li>
                    <span>结款状态：</span>
                @if($accountstatus)
                    <span>已提现</span>
                @else
                    <span>未提现</span>
                @endif
                </li>
                <li>
                    <span>提现日期：</span>
                @if($accounttime != '0000-00-00 00:00:00')
                    <span>{{date('Y-m-d H:i:s', strtotime($accounttime))}}</span>
                @else
                    <span>暂无</span>
                @endif
                </li>
            </ul>
        </section>
    </div>
@endsection

@section('scriptResources')
    @parent
    <script>
        
    </script>
@endsection